<?php
function sample_name($text, &$config, $url) {
	return $text;
}

function sample_sku($text, &$config, $url) {
	return $text;
}

function sample_price($text, &$config, $url) {
	return $text;
}

function sample_weight($text, &$config, $url) {
	return $text;
}
//多图用'|'分割
function sample_image($text, &$config, $url) {
	preg_match('/<img[^>]*src=[\'"]?([^>\'"\s]*)[\'"]?[^>]*>/i', $text, $out);
	return $out[1];
}

function sample_description($text, &$config, $url) {
	return $text;
}